import React from 'react'
// import EventEmitter from "../event"
class login extends React.Component {
    constructor(props) {
        super(props)

    }

    render() {
        return (
            <div >
                {/* <h1>登录</h1> */}
                {/* <img  src="./img/10.png"></img> */}
                <input type="text" placeholder="邮箱/手机号码/小米ID" ref="user" />
                <input type="password" placeholder="密码" ref="password" />
                <button onClick={() => {
                    var user = this.refs.user.value
                    var password = this.refs.password.value
                    

                    this.props.history.push({
                        pathname: "/millet",
                        state: { user: user, password: password }
                    })

                }}>登录</button>
            </div >
        )
    }
}

export default login;